package com.city.domain.city;

import javax.persistence.*;
import java.util.Objects;

/**
 * @deprecation: 案件状态
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
@Entity
@Table(name = "city_event_status", schema = "city", catalog = "")
public class CityEventStatus {
    private int id;//主键
    private String name;//名称
    private String updateTime;
    private String remarks;//备注

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "update_time")
    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "remarks")
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        CityEventStatus that = (CityEventStatus) o;
        return id == that.id &&
                Objects.equals(name, that.name) &&
                Objects.equals(updateTime, that.updateTime) &&
                Objects.equals(remarks, that.remarks);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, name, updateTime, remarks);
    }
}
